package com.senyint.imsdk.listener;

import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.packet.Packet;

import com.senyint.imsdk.packet.SimpleEventIQ;

public class XMPPIQListener implements PacketListener {

	@Override
	public void processPacket(Packet packet) {
		System.out.println("iq recv:"+packet.toXML());
		if(packet instanceof SimpleEventIQ){
			onHandleEvent((SimpleEventIQ)packet);
		}		
	}
	
	public void onHandleEvent(SimpleEventIQ packet) {
	}
	
}




